package com.lzh.runke.core.web_base.helper;


import com.lzh.runke.core.web_base.constant.StringConstant;

import java.util.Random;
import java.util.UUID;

/**
 * @Description: UUIDHelper
 * @Author: LiuZiHao
 * @Date: 2022/5/25 09:57
 */
public class UUIDHelper {

    final static Random random = new Random();

    /**
     * 随机生成UUID，不带"-"
     *
     * @return
     */
    public static String randomUUID() {
        return new UUID(random.nextLong(), random.nextLong()).toString().replaceAll(StringConstant.DASH, "");
    }
}
